const app = getApp()
Page({
    data: {
      config: app.config,
      
      planePhone: '',
    },
    onLoad() {
        my.setNavigationBar({
          reset: true
        });
        app._init_(this)
        this.getHome();
        this.setNamePhone();
    },


    setNamePhone(){
      let planePhone = app.globalData.planePhone;
      this.setData({
        planePhone: planePhone
      })

    },

    getHome(){
        app.other.home()
        .then(res=>{
            const data = JSON.parse(res.data.bigType).data.activeGoods
            console.log(666,data)
            this.setData(data)
        })
    },
    // 跳转
    navigateTo(e){
        app.navigateTo(e)
    }
});
